package com.lanhe.game.advertising;

import com.lanhe.game.advertising.domain.dto.AdvertisingCallbackDTO;
import com.lanhe.game.advertising.service.ILhAdsetAdvertisingRecService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api/advertising")
public class ApiAdvertisingRecController {
    @Autowired
    private ILhAdsetAdvertisingRecService lhAdsetAdvertisingRecService;

    @PostMapping("/callback")
    private void callback(@RequestBody AdvertisingCallbackDTO dto){
        lhAdsetAdvertisingRecService.adsetallback(dto);
    }
}
